﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Error : BasePage
{
    #region 画面初始化
    /// <summary>
    /// 画面初始化 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!Page.IsPostBack)
            {
                //清空所有Session 
                Session.RemoveAll();

                //取得异常信息内容 
                string strErrMessage = Request.QueryString["message"] == null ? string.Empty : Request.QueryString["message"].ToString();
                this.lblShowErrorContent.Text = strErrMessage;

                //取得异常类型 
                string strErrType = Request.QueryString["type"] == null ? string.Empty : Request.QueryString["type"].ToString();
                this.lblShowErrorType.Text = strErrType;
            }
        }
        catch (Exception ex)
        {
           //异常不做任何处理
        }
    }
    #endregion
}